<template>
	<view class="">
		<view class="list qy-bg-white ">
			<view class="li" @click="choose">
				<view class="li_l">
					<view class="iconfont icon-fahuo" style="font-size: 22px;"></view>
				</view>
				<view class="li_m">请选择发货地址</view>
				<view class="li_r">
					<view class="iconfont icon-right"></view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				my_address:''
			}
		},
		methods: {
			choose() {
				uni.chooseLocation({
					success: function(res) {
						console.log('位置名称：' + res.name);
						console.log('详细地址：' + res.address);
						console.log('纬度：' + res.latitude);
						console.log('经度：' + res.longitude);
						this.my_address = res.address
					}
				})
			}
		}
	}
</script>

<style lang="scss">
	.list {
		padding: 10px 10px 0;
	}

	.li {
		display: flex;
		border-bottom: 1px solid #F9F9F9;
		height: 50px;
		line-height: 50px;

		.li_l {
			width: 30px;
		}

		.li_m {
			flex-grow: 1;
		}

		.li_r {
			display: flex;
			color: #A6A6AB;
		}
	}
</style>
